package myjava.thread;

/**
 * @author Yancy
 * @program springioctest
 * @create 2020-11-10
 */
public class TwoThread implements Runnable {

  @Override
  public void run() {
    for (int i = 0; i < 20; i++) {
      System.out.println(Thread.currentThread().getName() + "\t" + i);
      if (i == 20) {
        System.out.println(Thread.currentThread().getName() + "\t" + "over");
      }
    }
  }
}
